﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Groceries.Web;

namespace Groceries.Web
{
    public partial class Supplier
    {
        public override bool Equals(object obj)
        {
            if (null == obj) return false;
            Supplier supplierToCompare = obj as Supplier;
            if (null == supplierToCompare) return false;
            return ID.Equals(supplierToCompare.ID);
        }

        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }

    }
}